package com.bjesc_b2c.app.appraiset.adapter;

import android.content.Context;
import android.widget.TextView;

import com.bjesc_b2c.app.appraiset.R;
import com.bjesc_b2c.app.appraiset.bean.ItemViewBean;

import java.util.ArrayList;
import java.util.List;

import app.pinggushi.bjesc.com.baserecyclerview.adapter.CommonAdapter;
import app.pinggushi.bjesc.com.baserecyclerview.adapter.base.ViewHolder;

/**
 * Created by yidong on 2017/6/22.
 */

public class MainViewAdapter extends CommonAdapter<ItemViewBean> {
    public List<TextView> views = new ArrayList<>();
    public MainViewAdapter(Context context, int layoutId, List<ItemViewBean> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convertView(ViewHolder holder, ItemViewBean itemViewBean, int position) {
        holder.setText(R.id.item_textView,itemViewBean.getTitle());
        holder.setImageResource(R.id.item_imageView,itemViewBean.getResID());
        views.add((TextView)holder.getView(R.id.tv_count));
    }
}
